//从小到大进行排序
var arr =[100,7,65,54,12,6,86,4,75,43,35,99];
function s(a,b) {
    return  a - b;
}
console.log(arr.sort(s));